package top.fyukina.fymil.internal.exps;

import org.dom4j.Element;
import top.fyukina.fymil.elements.Environment;
import java.math.BigDecimal;

public class Abs implements Expression<BigDecimal> {
    @Override
    public String registerName() {
        return "abs";
    }
    @Override
    public BigDecimal parse(Element exp, Environment env) {
        return env.reg().numParser.parse(exp, env).abs();
    }
}